package com.matt.domain;

import com.matt.commons.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/11/1
 * *******************************
 */
@Table(name = "followliveroom")
@Data
@Entity
@EqualsAndHashCode(callSuper = false)
public class FollowLiveRoom extends Model{

    @Column(columnDefinition = " varchar(32)  COMMENT '用户id'")
    private String uid;

    @Column(columnDefinition = " varchar(32)  COMMENT '摄像头id'")
    private String lid;

    @Column(name = "createTime", columnDefinition = "datetime default NOW() COMMENT '创建时间'")
    private Date createTime = new Date();

}
